		var isDebug = true;
		var terminalType;
		var fInnerBody;
		var fCardContent;
		var bInnerBody;
		var bCardContent;
		var browserW;
		var browserH;
		var innerBodyArgS = [
			[0, 0, 0, 0, 20, 45], //Iphone [上内边距，下内边距， 左内边距，右内边距， 正面纵向误差， 背面纵向误差]
			[8, 6, 6, 6, 0, 0],  //android [上内边距，下内边距， 左内边距，右内边距， 正面纵向误差， 背面纵向误差]
			[18, 18, 18, 18, 20, 10]  //桌面版 [上内边距，下内边距， 左内边距，右内边距， 正面纵向误差， 背面纵向误差]
		];
		var borderWidthS = [2, 2, 2, 2] //[上，下，左， 右的边框宽度]
		
		///////////////////////////////////////////////////////////////////////
		//////////////////////初始化字段内容--开始//////////////////////////////
		///////////////////////////////////////////////////////////////////////
		//<div id="f_comefrom" style="display: none;">{{f_comefrom}}</div>
		//<div id="f_question" style="display: none;">{{f_question}}</div>
		//<div id="f_qustionindex" style="display: none;">{{f_qustionindex}}</div>
		//<div id="f_rightanswer" style="display: none;">{{f_rightanswer}}</div>
		//<div id="f_answeroptions" style="display: none;">{{f_answeroptions}}</div>
		//<div id="f_answeranalyce" style="display: none;">{{f_answeranalyce}}</div>
		//<div id="f_tuozhan01" style="display: none;">{{f_tuozhan01}}</div>
		//<div id="f_tuozhan02" style="display: none;">{{f_tuozhan02}}</div>
		var f_comefrom;
		var f_question;
		var f_qustionindex;
		var f_rightanswer;
		var f_answeroptions;
		var f_answeranalyce;
		var f_tuozhan01;
		var f_tuozhan02;
		function initFieldContent() {
			if (isDebug) {	
                f_comefrom = '单选题_2018考研政治真题生物学史，可说';
                f_question = '冷冻电子显微镜。显在生物科学发现中的作用表明（）';
                f_qustionindex = '17';
                f_rightanswer = 'B';
				//原本的答案格式 ["kind","postitive","negative","optimistic"]
				//在anki中手动输入太难了
				let raw_answeroptions = '探索未知世界的科学实验是人类最基本的实践活动<br style="zoom: 1;">实践的主体和客体正是依靠中介系统才能够相互作用<br style="zoom: 1;">人类认识水平的提高与实践条件的进步有直接的关系<br style="zoom: 1;">主体、客体和中介三者有机统一构成的实践的基本结构"'
				f_answeroptions = JSON.stringify(raw_answeroptions.split('<br style="zoom: 1;">'));
                f_answeranalyce = '题干中，无论是植物细胞的发现还是DNA的发现，都是借助于显微镜实现的，所以，实践的主体和客体正是依靠中介系统';
                f_tuozhan01 = '';
                f_tuozhan02 = '';
			} else{
				f_comefrom = document.getElementById("f_comefrom").innerText;
				f_question = document.getElementById("f_question").innerText;
				f_qustionindex = document.getElementById("f_qustionindex").innerText;
				f_rightanswer = document.getElementById("f_rightanswer").innerText;
				let raw_answeroptions =  document.getElementById("f_answeroptions").innerHTML;
				console.log(raw_answeroptions)
				f_answeroptions = JSON.stringify(raw_answeroptions.split('<br style="zoom: 1;">'));
				f_answeranalyce = document.getElementById("f_answeranalyce").innerText;
				f_tuozhan01 = document.getElementById("f_tuozhan01").innerText;
				f_tuozhan02 = document.getElementById("f_tuozhan02").innerText;
			}
		}
		
		///////////////////////////////////////////////////////////////////////
		//////////////////////初始化字段内容--结束//////////////////////////////
		///////////////////////////////////////////////////////////////////////
				
		function getTerminalType() {
			function BrowserVersionType() {
				var u = navigator.userAgent,
					app = navigator.appVersion;
				return { //移动终端浏览器版本信息 
					ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 
					android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器 
					iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器 
					iPad: u.indexOf('iPad') > -1, //是否iPad 
					win: u.indexOf('QtWebEngine') > -1,
				}
			}

			versions = BrowserVersionType();
			//console.log(JSON.stringify(versions));
			var tempCode;
			if(versions.iPhone || versions.iPad || versions.ios) {
				tempCode = 0;
			} else if(versions.android) {
				tempCode = 1;
			} else if(versions.win) {
				tempCode = 2;
			} else {
				tempCode = 2;
				isDebug = true;
			}

			//验证终端类型：
			var info0 = ['我是---Ios', '我是---android', '我是---Win'];
			var info1 = ['我是---Ios', '我是---android', '我是---debug'];
			info = isDebug ? info1 : info0;
			document.getElementById("testDiv").innerText=info[tempCode];

			//返回终端类型
			return tempCode;
		}

		
		function initFInnerBody(terminalType){
		 	//第一步：判断是什么样的客户端
		 	var tArg = innerBodyArgS[terminalType];
		 	
		 	//第二步：定义
		 	browserW = window.innerWidth;
		 	browserH = window.innerHeight;
			fInnerBody = document.getElementById("fInnerBody");
			fCardContent = document.getElementById("fCardContent");
		 	
		 	var curW = browserW - tArg[2] - tArg[3];
		 	var curH = browserH - tArg[0] - tArg[1] -tArg[4];
		 	fInnerBody.style.width = curW + "px";
		 	fInnerBody.style.height = curH + "px";
		}
				 
		function initFCardContent() {
			var fIW = parseInt(fInnerBody.style.width);
			fIW = browserW > 400 ? 400 : fIW;
			fCardContent.style.width = (fIW - 2 * borderWidthS[0]) + "px";
			var fIH = parseInt(fInnerBody.style.height);
			fCardContent.style.height = (fIH - 2 * borderWidthS[2]) + "px";
			//fCardContent.style.backgroundColor = "rosybrown";
			fCardContent.style.margin = "0 auto";
		}
		
		
		function initBInnerBody(terminalType) {
		 	//第一步：判断是什么样的客户端
		 	var tArg = innerBodyArgS[terminalType];
		 	
		 	//第二步：定义
		 	browserW = window.innerWidth;
		 	browserH = window.innerHeight;
			bInnerBody = document.getElementById("bInnerBody");
			bCardContent = document.getElementById("bCardContent");
		 	
		 	var curW = browserW - tArg[2] - tArg[3];
		 	var curH = browserH - tArg[0] - tArg[1] -tArg[5];
		 	bInnerBody.style.width = curW + "px";
		 	bInnerBody.style.height = curH + "px";
		}
		
				 
		function initBCardContent() {
			var bIW = parseInt(bInnerBody.style.width);
			bIW = browserW > 400 ? 400 : bIW;
			bCardContent.style.width = (bIW - 2 * borderWidthS[0]) + "px";
			bIH = parseInt(bInnerBody.style.height);
			bCardContent.style.height = (bIH - 2 * borderWidthS[2]) + "px";
			//bCardContent.style.backgroundColor = "brown";
			bCardContent.style.margin = "0 auto";
		}
		